<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <button v-on:click="change1">点我</button>
        <button @click="change2">再点我</button>
    </div>
    <script type="module">
        import {createApp} from "https://unpkg.com/vue@3/dist/vue.esm-browser.js";
        createApp({
            data(){
                return{
                    message:"Hello Vue!"
                }
            },
            methods:{
                change1(){
                    alert("change1");
                },
                change2(){
                    alert("change2");
                }
            }
        }).mount("#app");
    </script>
</body>
</html>